home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / ov_all.zip / TI636.ASC < prev    next >
Text File  |  1991-09-11  |  3KB  |  133 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.   PRODUCT  :  ObjectVision                           NUMBER  :  636
  8.   VERSION  :  1.0
  9.        OS  :  WIN
  10.      DATE  :  September 11, 1991                         PAGE : 1/2
  11.  
  12.     TITLE  :  Creating a second index in Paradox to use in
  13.               ObjectVision
  14.  
  15.  
  16.  
  17.  
  18.   Description: This document explains how to create a secondary
  19.   index in Paradox and use it in ObjectVision.  This is handy when
  20.   searching for a "Closest Match" in ObjectVision.  The field in
  21.   the closest match must be keyed in order for ObjectVision to find
  22.   it.  If it is not keyed on the primary index in the database, you
  23.   need not restructure the entire database.  All you have to do is
  24.   create a secondary index for the field.
  25.  
  26.   There are two steps in this process. 1.) Write and run a short
  27.   script in Paradox to create the secondary index. 2.) Create a
  28.   link to this table in ObjectVision, using the desired field as
  29.   the secondary index.
  30.  
  31.   Load the file into Paradox and View the table you would like to
  32.   create the index on.  Move the cursor to the desired field and
  33.   press ALT-F10.  Select MINISCRIPT from the menu.  Type the
  34.   following script:
  35.  
  36.           INDEX MAINTAINED TABLE() ON FIELD()
  37.  
  38.   likewise you could also type
  39.  
  40.           INDEX MAINTAINED "TABLENAME" ON "FIELDNAME"
  41.  
  42.   where TABLENAME is the name of the table you wish to run the
  43.   secondary index for and FIELDNAME is the field you wish to create
  44.   the secondary index on.  The quotes ARE needed if you use this
  45.   method.
  46.  
  47.   Then press the ENTER key.  This will run the brief script,
  48.   creating the secondary index.  This index information will be
  49.   stored in a file in the same directory as the original table.
  50.   (It is not necessary to know the filename, but it will have the
  51.   same name as the database file, with an extension starting with
  52.   X0, or Y0, followed by a number.)  Now exit Paradox and start up
  53.   ObjectVision.
  54.  
  55.   Paradox now has to be told that it needs to maintain secondary
  56.   indexes.  Run the CUSTOM script in Paradox.  Choose
  57.   PAL|MaintainIndexes and select "Yes".  Be sure to save this
  58.   change when you exit Paradox.  This only needs to be done once
  59.   for each copy of Paradox that will be accessing files with
  60.   multiple indexes.
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.   PRODUCT  :  ObjectVision                           NUMBER  :  636
  74.   VERSION  :  1.0
  75.        OS  :  WIN
  76.      DATE  :  September 11, 1991                         PAGE : 2/2
  77.  
  78.     TITLE  :  Creating a second index in Paradox for use by
  79.               ObjectVision
  80.  
  81.  
  82.  
  83.  
  84.   Create an ObjectVision form you will link to this database table.
  85.   Follow the procedure "Linking to Paradox Files" in the Reference
  86.   manual, chapter 10, Linking to Data Files.  In the link menu
  87.   place the name of the field in the Paradox table you want to use
  88.   as the secondary link (don't enter the secondary index file
  89.   name).
  90.  
  91.   When you finish creating this link, it will be indexed on the
  92.   secondary index field.  Searching on this field will now be
  93.   possible.
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.